const { _hash, injectScript, injectBeidouSdk, injectWMDASdk } = require('./util')

const configStatic = {
  BASE_TITLE: 'Matrix Template',
  BASE_ICON: '//j1.58cdn.com.cn/epfe/static/favicon.ico',
  BASE_HASH: _hash,
  BASE_URL: {
    development: '/',
    online: '//j1.58cdn.com.cn/git/epfe/matrix-template/v2-ts/',
    test: '//j1.58cdn.com.cn/git/epfe/matrix-template/v2-ts/test'
  },
  BASE_PROXY: {
    '/api': {
      target: 'http://matrix.58v5.cn/',
      changeOrigin: true,
      pathRewrite: {
        '^/api': '/'
      }
    }
  },
  BASE_INJECT: injectScript(),
  Report_BEIDOU: injectBeidouSdk({
    projectId: 1001,
    overtime: 60 * 1000
  }),
  Report_WMDA: injectWMDASdk({
    appid: 27354616497971,
    key: '0v4x6vlj',
    project_id: '11784595462454'
  })
}

module.exports = configStatic
